

<table id="table" align="center" cellpadding="4" cellspacing="1" width="90%">
<tbody>
<?for($i=0,$c=count($result);$i<$c;$i++){?>
<tr id="header">
<td nowrap="nowrap">
    <table width=100%>
    <tr><td>
    <a name='<?=$result[$i]['id_post'];?>' href='#<?=$result[$i]['id_post'];?>'>#</a>
    <a href="javascript://"
       onclick='document.getElementById("text").value+="[b]<?=strip_tags($result[$i]['name']);?>[/b]";window.location="#form";'>
       <?=$result[$i]['name'];?></a>
    <td></td>
    <td align=right>
    <?=$result[$i]['data'];?>
    </td>
    </table>
    </td>
</tr>
<tr id="<?if($i%2==0){?>firstline<?}else{?>secondline<?}?>">
  <td align="left" nowrap="nowrap" valign="middle">
     <div align=right> <a href="mailto:<?=$result[$i]['addfilds']['email'];?>">Email</a>
     <?if ($result[$i]['addfilds']['url']){?> <noindex><a target=_blank href="<?=$result[$i]['addfilds']['url'];?>">URL</a></noindex><?}?>
     </div>
     <div width=100% style='overflow:auto;' id='text_value'><?=$result[$i]['text'];?></div>
     <?if ($_GLOBALS['is_admin']){?>
       <div align=right>
        <a href='admin.php?do=editonepost&id=<?=$result[$i]['id_post'];?>&sw=1'>[Изменить]</a> ||
        <a href='admin.php?do=delpost&id=<?=$result[$i]['id_post'];?>&sw=1'>[Удалить]</a> ||
        <?if(!$result[$i]['is_banned']){?><a href='admin.php?do=banpost&id=<?=$result[$i]['id_post'];?>&sw=1'>[Забанить]</a>
        <?}else{?>
          <a href='admin.php?do=rebanpost&id=<?=$result[$i]['id_post'];?>&sw=1'>[Разбанить]</a>
        <?}?>
         || IP: <?=$result[$i]['ip'];?>
       </div>
     <?}?>
  </td>
</tr>
<?}?>
<tr id="header">
<td align="center" nowrap="nowrap">&nbsp;</td>
</tr>
</tbody>
</table>
